package demo;

import java.util.concurrent.locks.AbstractQueuedSynchronizer;

public class Test {

    public static void main(String[] args) {
        Game basketball = new Basketball();
        Game football = new Football();

        //调用模板方法
        basketball.play();
        System.out.println();
        football.play();


    }
}
